package com.scsj.supermarket.view.activity.cooperationmodel;

import android.os.Bundle;
import android.view.View;
import android.widget.RelativeLayout;

import com.scsj.supermarket.R;
import com.scsj.supermarket.utils.SkipUtils;
import com.scsj.supermarket.view.activity.baseactivitymodel.BaseActivity;

/**
 * 我要合作 商家入驻，圈主加盟，骑手招募
 */
public class ToCooperationActivity extends BaseActivity implements View.OnClickListener {


    private RelativeLayout mMerchantsSettledRl;
    private RelativeLayout mBusinessCircleMasterJoinRl;
    private RelativeLayout mRecruitingDeliverymanRl;

    @Override
    protected void createView(Bundle savedInstanceState) {
        setContentView(R.layout.activity_to_cooperation);
//        ScreenAdapterTools.getInstance().loadView((ViewGroup) getWindow().getDecorView());
        //ScreenAdapterTools.getInstance().reset(this);//如果希望android7.0分屏也适配的话,加上这句
        initToolbar();
        initView();
        setToolbarTitle("我要合作");
        hasBack(true);
    }

    @Override
    protected void initView() {

        mMerchantsSettledRl = (RelativeLayout) findViewById(R.id.merchants_settled_rl);
        mMerchantsSettledRl.setOnClickListener(this);
        mBusinessCircleMasterJoinRl = (RelativeLayout) findViewById(R.id.business_circle_master_join_rl);
        mBusinessCircleMasterJoinRl.setOnClickListener(this);
        mRecruitingDeliverymanRl = (RelativeLayout) findViewById(R.id.recruiting_deliveryman_rl);
        mRecruitingDeliverymanRl.setOnClickListener(this);
    }

    @Override
    protected void initListener() {

    }

    @Override
    protected void initData() {

    }


    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            default:
                break;
            case R.id.merchants_settled_rl://商家入驻
                SkipUtils.toBusinessCheckin(this);
                break;
            case R.id.business_circle_master_join_rl://圈主加盟

                SkipUtils.toBusinessOwnersJoin(this);
                break;
            case R.id.recruiting_deliveryman_rl://配送招募
                SkipUtils.toDeliveryRecruit(this);
                break;
        }
    }
}
